//数组也是对象，把数组看成下标为key的可迭代对象
const arr = [1,2,3,4,5,6];
const name= {
    name:"瞿翔",
    age:"21",
    hobbies:["达瓦","猛攻","王者"]
}
// 设计来迭代对象的属性
for(let k in name){
    console.log(k,name[k])
}
//key 是下标
/* for(let key in arr) {
    console.log(key,arr[key]);
} */